#include "CCara.h"

// Constructors
//-----------------------------------------------------------
CCara::CCara( void ){
	this->index.clear();
}

CCara::~CCara( void ) {}

// Escriptura de dades
//-----------------------------------------------------------
void CCara::addIndex( size_t index ){
	this->index.push_back( index );
}

void CCara::clear( void ){
	this->index.clear();
}

// Lectura de dades
//-----------------------------------------------------------
size_t CCara::getSize( void ){
	return this->index.size();
}

CPunt3D & CCara::selectNormal( void ){
	return this->normal;
}

CPunt3D & CCara::selectCentre( void ){
	return this->centre;
}


// Operacions
//-----------------------------------------------------------
size_t CCara::operator [] ( size_t index ){
	return this->index[ index ];
}